package com.elock.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.elock.base.core.entity.BaseEntity;

/**
 * Entity - 报警信息
 * @author 仁德
 */
@Entity
@Table(name = "warning_message")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "warning_message_sequence")
public class WarningMessage extends BaseEntity {

	private static final long serialVersionUID = 4356506243698650517L;

//	/** 终端设备id */
//	private Long terminalId;

	/** 终端设备编号 */
	private String terminalNum;

	/** 锁号 */
	private String elockNum;

	/** 报警信息 */
	private String warningMessage;

	/** 报警标识 有一组0、1组成的标识 */
	private String warningFlag;

	/** 报警类型 */
	private int warningType;

	/** 报警发生时间 */
	private String warningTime;

	/** 经度 */
	private BigDecimal longitude;

	/** 纬度 */
	private BigDecimal latitude;

//	/** 处理人 */
//	private String processor;

	/** 当次事件唯一标识，日志也记录  */
	private String uuid;

	/** 备注 */
	private String remark;

	/**  
	 * 获取terminalNum  
	 * @return terminalNum terminalNum  
	 */
	public String getTerminalNum() {
		return terminalNum;
	}

	/**  
	 * 设置terminalNum  
	 * @param terminalNum terminalNum  
	 */
	public void setTerminalNum(String terminalNum) {
		this.terminalNum = terminalNum;
	}

	/**  
	 * 获取warningMessage  
	 * @return warningMessage warningMessage  
	 */
	public String getWarningMessage() {
		return warningMessage;
	}

	/**  
	 * 设置warningMessage  
	 * @param warningMessage warningMessage  
	 */
	public void setWarningMessage(String warningMessage) {
		this.warningMessage = warningMessage;
	}

	/**  
	 * 获取warningType  
	 * @return warningType warningType  
	 */
	public int getWarningType() {
		return warningType;
	}

	/**  
	 * 设置warningType  
	 * @param warningType warningType  
	 */
	public void setWarningType(int warningType) {
		this.warningType = warningType;
	}

	/**  
	 * 获取warningTime  
	 * @return warningTime warningTime  
	 */
	public String getWarningTime() {
		return warningTime;
	}

	/**  
	 * 设置warningTime  
	 * @param warningTime warningTime  
	 */
	public void setWarningTime(String warningTime) {
		this.warningTime = warningTime;
	}

	/**  
	 * 获取longitude  
	 * @return longitude longitude  
	 */
	@Column(precision = 21, scale = 6)
	public BigDecimal getLongitude() {
		return longitude;
	}

	/**  
	 * 设置longitude  
	 * @param longitude longitude  
	 */
	public void setLongitude(BigDecimal longitude) {
		this.longitude = longitude;
	}

	/**  
	 * 获取latitude  
	 * @return latitude latitude  
	 */
	@Column(precision = 21, scale = 6)
	public BigDecimal getLatitude() {
		return latitude;
	}

	/**  
	 * 设置latitude  
	 * @param latitude latitude  
	 */
	public void setLatitude(BigDecimal latitude) {
		this.latitude = latitude;
	}

//	/**  
//	 * 获取processor  
//	 * @return processor processor  
//	 */
//	public String getProcessor() {
//		return processor;
//	}
//
//	/**  
//	 * 设置processor  
//	 * @param processor processor  
//	 */
//	public void setProcessor(String processor) {
//		this.processor = processor;
//	}

	/**  
	 * 获取uuid  
	 * @return uuid uuid  
	 */
	public String getUuid() {
		return uuid;
	}

	/**  
	 * 设置uuid  
	 * @param uuid uuid  
	 */
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	/**  
	 * 获取remark  
	 * @return remark remark  
	 */
	public String getRemark() {
		return remark;
	}

	/**  
	 * 设置remark  
	 * @param remark remark  
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getElockNum() {
		return elockNum;
	}

	public void setElockNum(String elockNum) {
		this.elockNum = elockNum;
	}

	public String getWarningFlag() {
		return warningFlag;
	}

	public void setWarningFlag(String warningFlag) {
		this.warningFlag = warningFlag;
	}

}
